package com.tom;

import cn.itsource.hrm.exception.GlobalExceptionHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

//课程中心服务
@SpringBootApplication
@EnableEurekaClient
//导入指定的类
@Import({ GlobalExceptionHandler.class })

//开启定时任务
@EnableScheduling
public class KillApplication {

    public static void main(String[] args) {
        SpringApplication.run(KillApplication.class);
    }
}
